﻿<Window x:Class="PMisuseAn.AddPolicyWindow1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Mobile privacy policy editor"  Height="672" Width="866" ResizeMode="NoResize" Background="#FFEEFFFF" Icon="images\title.ico">

    <Grid Width="843" Height="638">
        <GroupBox Header="Rule category" Height="138" HorizontalAlignment="Left" Margin="2,58,0,0" Name="groupBox3" VerticalAlignment="Top" Width="835">
            <Grid Width="829">
                <!--<RadioButton Content="until:" GroupName="doRuleTypeGroup" Height="16" HorizontalAlignment="Left" Margin="257,71,0,0" Name="do_until_rc_rb" VerticalAlignment="Top" Tag="do_until" Checked="rc_rb_Checked" />
                <RadioButton Content="unless:" Height="16" HorizontalAlignment="Left" Margin="257,93,0,0" Name="do_until_unless_rc_rb" VerticalAlignment="Top" GroupName="doRuleTypeGroup" Tag="do_until_unless" Checked="rc_rb_Checked" />
                <RadioButton Content="do:" Height="16" HorizontalAlignment="Left" Margin="257,49,0,0" Name="do_rc_rb" VerticalAlignment="Top" GroupName="doRuleTypeGroup" Tag="do" Checked="rc_rb_Checked" />-->
                <RichTextBox BorderThickness="0.5" Height="22" HorizontalAlignment="Left" IsReadOnly="True" IsUndoEnabled="True" Margin="55,48,0,0" Name="if_rc_tb" VerticalAlignment="Top" Width="768" />
                <!--<RichTextBox BorderThickness="0.5" Height="22" HorizontalAlignment="Left" IsReadOnly="True" IsUndoEnabled="True" Margin="0,49,0,0" Name="do_rc_tb" VerticalAlignment="Top" Width="192" Grid.Column="1" />-->
                <!--<RichTextBox BorderThickness="0.5" Height="23" HorizontalAlignment="Left" IsReadOnly="True" IsUndoEnabled="True" Margin="0,71,0,0" Name="do_until_rc_tb" VerticalAlignment="Top" Width="192" Grid.Column="1" />
                <RichTextBox BorderThickness="0.5" Height="21" HorizontalAlignment="Left" IsReadOnly="True" IsUndoEnabled="True" Margin="0,93,0,0" Name="do_until_unless_rc_tb" VerticalAlignment="Top" Width="192" Grid.Column="1" />-->
                <Label Content="if(required) then(required) unless(optional)" DataContext="{Binding}" Height="26" Margin="51,29,380,0" Name="label5" VerticalAlignment="Top" FontSize="10" Foreground="DarkBlue" />
                <!--<Label Content="do( required) until(optional) unless(optional)" DataContext="{Binding}" FontSize="10" Height="25" Margin="303,29,-2,0" Name="label6" VerticalAlignment="Top" Foreground="DarkBlue" Grid.ColumnSpan="2" />-->
                <RadioButton Content="then:" GroupName="ifRuleTypeGroup" Height="16" HorizontalAlignment="Left" Margin="4,71,0,0" Name="if_then_rc_rb" VerticalAlignment="Top" Tag="if_then" Checked="rc_rb_Checked" />
                <RadioButton Content="unless:" GroupName="ifRuleTypeGroup" Height="16" HorizontalAlignment="Left" Margin="3,92,0,0" Name="if_then_unless_rc_rb" VerticalAlignment="Top" Tag="if_then_unless" Checked="rc_rb_Checked" />
                <RadioButton Content="if:" Height="16" HorizontalAlignment="Left" Margin="4,49,0,0" Name="if_rc_rb" VerticalAlignment="Top" GroupName="ifRuleTypeGroup" Checked="rc_rb_Checked" Tag="if" />
                <ToolBarTray Height="35" HorizontalAlignment="Left" Name="toolBarTray1" VerticalAlignment="Top" Width="842" ClipToBounds="True" Margin="-1,0,0,0">
                    <ToolBar Band="1" BandIndex="1" FontSize="13" IsHitTestVisible="True" VerticalAlignment="Top" HorizontalAlignment="Right" HorizontalContentAlignment="Right">
                        <!--<Button Content="≤" Click="Symbol_Button_Click" Name="lessthanequals" />
                <Button Content="≥" Click="Symbol_Button_Click" Name ="greaterthanequals"/>-->
                        <Button Content="&lt;" Click="Symbol_Button_Click" Name="lessthan" />
                        <Button Content=">" Click="Symbol_Button_Click" Name="greaterthan" />
                        <Button Content="=" Click="Symbol_Button_Click" Name="equals" />
                        <Button Content="≠" Click="Symbol_Button_Click" Name="notequals" />
                        <!--<Button Content="⇔" Click="Symbol_Button_Click" Name="equilavence" />
                <Button Content="⊨" Click="Symbol_Button_Click" Name="entails" />-->
                        <Separator />
                        <!--<Button Content="⊆" Click="Symbol_Button_Click" Name="properSubset" />
                        <Button Content="⊂" Click="Symbol_Button_Click" Name="subset" />
                        <Button Content="∪" Click="Symbol_Button_Click" Name="union" />
                        <Button Content="∩" Click="Symbol_Button_Click" Name="intersection" />
                        <Button Content="∈" Click="Symbol_Button_Click" Name="elementOf" />
                        <Button Content="∉" Click="Symbol_Button_Click" Name="notElementof" />
                        <Separator />-->
                        <!--<Button Content="¬" Click="Symbol_Button_Click" Name="not" />-->
                        <!--<Button Content="→" Click="Symbol_Button_Click" Name="implies" />-->
                        <Button Content="V" Click="Symbol_Button_Click" Name="or" FontSize="11" />
                        <Button Content="∧" Click="Symbol_Button_Click" Name="and" />
                        <Separator />
                        <!--<Button Content="(" Click="Symbol_Button_Click" Name="openingBracket" />-->
                        <!--<Button Content=")" Click="Symbol_Button_Click" Name="closingBracket" />-->
                        <Button Content="+" Click="Symbol_Button_Click" Name="plus" />
                        <Button Content="-" Click="Symbol_Button_Click" Name="minus" />
                        <Button Content="*" Click="Symbol_Button_Click" Name="multiplication" />
                        <Button Content="/" Click="Symbol_Button_Click" Name="division" />
                        <Separator />
                        <!--<Button Name="undo_b"  Click="Undo_Button_Click" IsEnabled="False">
                    <Image Height="12" Source="images\undo.png" Width="15" />
                </Button>
                <Button Name="redo_b" Click="Redo_Button_Click" IsEnabled="True">
                    <Image Height="12" Source="images\redo.png" Width="16" />
                </Button>-->
                        <Label Content="                                                                                                                                                                                 " VerticalAlignment="Top" />

                        <Button Name="clear_b" Click="Clear_Button_Click">
                            <Image Height="12" Source="images\clear.png" Width="15" />
                        </Button>
                    </ToolBar>
                </ToolBarTray>
                <ComboBox Height="22" HorizontalAlignment="Left" IsEditable="False" Margin="55,70,0,0" Name="then_temporal_cb" VerticalAlignment="Top" Width="113" FontSize="11" Background="White" BorderBrush="#FFC6C7C6">
                    <ComboBoxItem Content="PREVIOUSLY " />
                    <ComboBoxItem Content="EVENTUALLY " />
                    <ComboBoxItem Content="NEXT-TIME" />
                    <ComboBoxItem Content="LAST-TIME" />
                    <ComboBoxItem Content="HENCEFORTH" />
                    <ComboBoxItem Content="ALL-TIME" IsSelected="True" />
                </ComboBox>
                <ComboBox Background="White" BorderBrush="#FFC6C7C6" FontSize="11" Height="22" HorizontalAlignment="Left" IsEditable="False" Margin="55,91,0,0" Name="unless_temporal_cb" VerticalAlignment="Top" Width="113">
                    <ComboBoxItem Content="PREVIOUSLY " />
                    <ComboBoxItem Content="EVENTUALLY " />
                    <ComboBoxItem Content="NEXT-TIME" />
                    <ComboBoxItem Content="LAST-TIME" />
                    <ComboBoxItem Content="HENCEFORTH" />
                    <ComboBoxItem Content="ALL-TIME" IsSelected="True" />
                </ComboBox>
                <RichTextBox BorderThickness="0.5" Height="23" HorizontalAlignment="Left" IsReadOnly="True" IsUndoEnabled="True" Margin="168,70,0,0" Name="if_then_rc_tb" VerticalAlignment="Top" Width="655" />
                <RichTextBox BorderThickness="0.5" Height="21" HorizontalAlignment="Left" IsReadOnly="True" IsUndoEnabled="True" Margin="168,92,0,0" Name="if_then_unless_rc_tb" VerticalAlignment="Top" Width="655" />
                <Rectangle Height="65" HorizontalAlignment="Left" Margin="54,48,0,0" Name="rectangle1" Stroke="#FFE6E6E6" VerticalAlignment="Top" Width="769" />
                <Button Content="auto complete" Margin="248,34,501,58" Name="button2" Style="{StaticResource LinkButton}" Click="Symbol_Auto_Close_Button_Click" FontSize="9" />
            </Grid>
        </GroupBox>
        <Button Content="Add" Name="add_policy_statement" Style="{StaticResource LinkButton}" Margin="813,1,3,614" Click="add_policy_statement_b_Click" />
        <GroupBox Header="Attribute,Role and Group categories" Height="179" HorizontalAlignment="Left" Margin="3,199,0,0" Name="groupBox1" VerticalAlignment="Top" Width="834">
            <Grid Width="820">
                <ListBox Height="59" HorizontalAlignment="Left" Margin="1,22,0,0" Name="agentAttributes_lb" VerticalAlignment="Top" Width="161" ToolTip="attributes of information receivers/ senders" SelectionChanged="agentAttributes_lb_SelectionChanged" Focusable="False" />
                <Label Content="Agent attributes" Height="28" HorizontalAlignment="Left" Margin="2,0,0,0" Name="label1" VerticalAlignment="Top" ToolTip=" (info. receivers/senders)" />
                <Label Content="Environmental attributes" Height="28" HorizontalAlignment="Left" Margin="164,-1,0,0" Name="label2" VerticalAlignment="Top" />
                <Label Content="Functional attributes" Height="28" HorizontalAlignment="Left" Margin="330,0,0,0" Name="label3" VerticalAlignment="Top" />
                <ListBox Height="128" Margin="161,22,494,0" Name="environmentAttributes_lb" ToolTip="attributes of mobile environment" VerticalAlignment="Top" SelectionChanged="environmentalAttributes_lb_SelectionChanged" Focusable="False" />
                <ListBox Height="128" HorizontalAlignment="Left" Margin="322,22,0,0" Name="functionalAttributes_lb" ToolTip="functional attributes" VerticalAlignment="Top" Width="161" SelectionChanged="functionalAttributes_lb_SelectionChanged" Focusable="False" />
                <Label Content="Agent(Actor) Role:" Height="26" HorizontalAlignment="Left" Margin="482,-3,0,0" Name="label6" VerticalAlignment="Top" Width="112" />
                <ListBox Height="128" HorizontalAlignment="Left" Margin="487,22,0,0" Name="actor_roles_lb" ToolTip="actor roles" VerticalAlignment="Top" Width="161" SelectionChanged="actor_roles_lb_SelectionChanged" Focusable="False"></ListBox>
                <Rectangle Height="157" HorizontalAlignment="Left" Margin="483,-7,0,0" Name="rectangle2" Stroke="{x:Null}" VerticalAlignment="Top" Width="4" Fill="#FFDDE7EB" />
                <!--<ComboBox Height="20" HorizontalAlignment="Left" IsEditable="False" Margin="514,1,0,0" Name="actorsList_cb" VerticalAlignment="Top" Width="134" FontSize="11" Background="White" SelectionChanged="actorsList_cb_SelectionChanged" />-->
                <ListBox Focusable="False" Height="52" HorizontalAlignment="Left" Margin="652,22,0,0" Name="groups_lb" ToolTip="groups" VerticalAlignment="Top" Width="168" SelectionChanged="groups_lb_SelectionChanged" />
                <Label Content="Groups" Height="28" HorizontalAlignment="Left" Margin="654,-1,0,0" Name="label7" VerticalAlignment="Top" />
                <Rectangle Fill="#FFDDE7EB" Height="157" HorizontalAlignment="Left" Margin="648,-5,0,0" Name="rectangle3" Stroke="{x:Null}" VerticalAlignment="Top" Width="4" />
                <ListBox Focusable="False" Height="52" HorizontalAlignment="Left" Margin="652,98,0,0" Name="group_functions_lb" ToolTip="group functions" VerticalAlignment="Top" Width="168" SelectionChanged="groupFunctional_lb_SelectionChanged"/>
                <Label Content="Group Functions:" Height="28" HorizontalAlignment="Left" Margin="650,75,0,0" Name="label8" VerticalAlignment="Top" />
                <Button Content="New" Margin="792,80,1,53" Name="new_group_function_b" Style="{StaticResource LinkButton}" Click="new_group_function_b_Click" />
                <ListBox Focusable="False" Height="56" HorizontalAlignment="Left" Margin="1,94,0,0" Name="regulatoryAttributes_lb" ToolTip="regulatory attributes to identify if transmission principles has been satisfied" VerticalAlignment="Top" Width="161" SelectionChanged="regulatoryAttributes_lb_SelectionChanged" />
                <Label Content="Regulatory attributes" Height="28" HorizontalAlignment="Left" Margin="3,73,0,0" Name="label9" ToolTip=" (info. receivers/senders)" VerticalAlignment="Top" />
                <Button Content="New" Margin="448,4,345,129" Name="button3" Style="{StaticResource LinkButton}" Click="new_policy_function_b_Click" FontSize="10" />
            </Grid>
        </GroupBox>
        <GroupBox Header="Policy statements" Height="194" HorizontalAlignment="Left" Margin="4,421,0,0" Name="groupBox2" VerticalAlignment="Top" Width="833">
            <Grid Height="172" Width="819">
                <ListBox Height="170" HorizontalAlignment="Left" Margin="1,1,0,0" Name="policies_lb" VerticalAlignment="Top" Width="818" />
                <!--<FlowDocumentReader Height="160" HorizontalAlignment="Left" IsScrollViewEnabled="true" IsTabStop="True" IsTwoPageViewEnabled="False" Margin="-2,4,0,0" Name="policy_statements_fdr" Padding="1" VerticalAlignment="Top" Width="506" ViewingMode="Scroll" IsPrintEnabled="False" IsPageViewEnabled="False">
                    <FlowDocumentReader.Document>
                        <FlowDocument Name="policy_statements_fd" PagePadding="3">
                            <Table Name="policy_statements_t">
                                <Table.Columns>
                                    <TableColumn Width="25" />
                                    <TableColumn Width="437" />
                                    <TableColumn Width="25" />                                    
                                </Table.Columns>
                                <TableRowGroup Name="policy_statements_trg">
                                    <TableRow>
                                        <TableCell>
                                            <Paragraph FontSize="11" TextDecorations="underline">no</Paragraph>
                                        </TableCell>
                                        <TableCell>
                                            <Paragraph FontSize="11" TextDecorations="underline">policy statement</Paragraph>
                                        </TableCell>
                                        <TableCell>
                                            <Paragraph FontSize="11">
                                                <Image Source="images\delete.png" Width="12" />
                                            </Paragraph>
                                        </TableCell>
                                        
                                    </TableRow>
                                </TableRowGroup>
                            </Table>
                        </FlowDocument>
                    </FlowDocumentReader.Document>
                </FlowDocumentReader>-->
            </Grid>
        </GroupBox>
        <Label Background="#FFF8F8F8" Height="23" HorizontalAlignment="Left" HorizontalContentAlignment="Left" Margin="10,393,0,0" Name="domain_l_t" VerticalAlignment="Top" Width="650" VerticalContentAlignment="Top" FontSize="10" Foreground="DarkBlue" />
        <Label Content="Constraint Value:" HorizontalAlignment="Right" Margin="0,373,63,241" Name="label4" Width="118" />
        <Button Content="ok" Height="22" HorizontalAlignment="Left" Margin="804,393,0,0" Name="att_value_ok" VerticalAlignment="Top" Width="34" Click="att_value_ok_Click" />
        <TextBox Background="{x:Null}" BorderBrush="{x:Null}" Height="24" HorizontalAlignment="Left" IsEnabled="True" IsReadOnly="True" IsReadOnlyCaretVisible="False" IsTabStop="False" Margin="9,373,0,0" Name="textBox2" Text="Domain:" VerticalAlignment="Top" Width="102" />
        <ComboBox Height="23" IsEditable="True" Margin="660,393,40,0" Name="value_cb" VerticalAlignment="Top" />
        <GroupBox Header="Transmission Principle" Height="44" HorizontalAlignment="Left" Margin="3,12,0,0" Name="groupBox4" VerticalAlignment="Top" Width="835">
            <Grid Height="19" Width="823">
                <RadioButton Content="Confidentiality" GroupName="TPType" Height="16" HorizontalAlignment="Left" IsChecked="True" Margin="6,4,0,0" Name="confidentiality" ToolTip="(across all information transfers)" VerticalAlignment="Top" FontSize="10.5" />
                <RadioButton Content="Secrecy" GroupName="TPType" Height="16" HorizontalAlignment="Right" IsChecked="False" Margin="0,4,552,0" Name="secrecy" ToolTip="(across all information transfers)" VerticalAlignment="Top" FontSize="10.5" />
                <RadioButton Content="Consent" GroupName="TPType" Height="16" HorizontalAlignment="Left" IsChecked="False" Margin="448,4,0,0" Name="consent" ToolTip="(across all information transfers)" VerticalAlignment="Top" FontSize="10.5" />
                <RadioButton Content="Notice" GroupName="TPType" Height="16" HorizontalAlignment="Right" IsChecked="False" Margin="0,4,233,0" Name="notice" ToolTip="(across all information transfers)" VerticalAlignment="Top" FontSize="10.5" />
                <RadioButton Content="Reciprocity (Barter)" FontSize="10.5" GroupName="TPType" Height="16" HorizontalAlignment="Right" IsChecked="False" Margin="0,4,412,0" Name="reciprocity" ToolTip="(across all information transfers)" VerticalAlignment="Top" />
                <RadioButton Content="Desert(Entitlement)" FontSize="10.5" GroupName="TPType" Height="16" HorizontalAlignment="Right" IsChecked="False" Margin="0,4,86,0" Name="desert" ToolTip="(across all information transfers)" VerticalAlignment="Top" />
                <!--<RadioButton Content="Compulsion" FontSize="10.5" GroupName="TPType" Height="16" HorizontalAlignment="Left" IsChecked="False" Margin="370,4,0,0" Name="compulsion" ToolTip="(across all information transfers)" VerticalAlignment="Top" />-->
                <RadioButton Content="Null" FontSize="10.5" GroupName="TPType" Height="16" HorizontalAlignment="Right" IsChecked="True" Margin="0,4,11,0" Name="no_tp" ToolTip="(across all information transfers)" VerticalAlignment="Top" Foreground="Firebrick" />
                <RadioButton Content="Fiduciary" FontSize="10.5" GroupName="TPType" Height="16" HorizontalAlignment="Left" IsChecked="False" Margin="124,4,0,0" Name="fiduciary" ToolTip="(across all information transfers)" VerticalAlignment="Top" />
            </Grid>
        </GroupBox>
        <Button Content="Close" Margin="806,612,3,2" Name="button1" Style="{StaticResource LinkButton}" Click="Select_PolicyClose_Button_Click" />
    </Grid>
</Window>
